package com.hehua.Builder;

public class Client {
    public static void main(String[] args) throws Exception {
        ActorBuilder actorBuilder;
        actorBuilder = (ActorBuilder)XmlUtil.getBean();

        ActorController actorController = new ActorController();
        Actor actor;
        actor = actorController.construct(actorBuilder);
        System.out.println(actor.getType());
        System.out.println(actor.getSex());
        System.out.println(actor.getCostume());
        System.out.println(actor.getFace());
        System.out.println(actor.getHairStyle());
    }
}
